Optimal. Leaf size=107 \[ \frac {8 c \cos (e+f x) (a \sin (e+f x)+a)^{m+1}}{a f \left (4 m^2+16 m+15\right ) \sqrt {c-c \sin (e+f x)}}+\frac {2 \cos (e+f x) \sqrt {c-c \sin (e+f x)} (a \sin (e+f x)+a)^{m+1}}{a f (2 m+5)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.35, antiderivative size = 107, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {2841, 2740, 2738} \[ \frac {8 c \cos (e+f x) (a \sin (e+f x)+a)^{m+1}}{a f \left (4 m^2+16 m+15\right ) \sqrt {c-c \sin (e+f x)}}+\frac {2 \cos (e+f x) \sqrt {c-c \sin (e+f x)} (a \sin (e+f x)+a)^{m+1}}{a f (2 m+5)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2738
Rule 2740
Rule 2841
Rubi steps
\begin {align*} \int \cos ^2(e+f x) (a+a \sin (e+f x))^m \sqrt {c-c \sin (e+f x)} \, dx &=\frac {\int (a+a \sin (e+f x))^{1+m} (c-c \sin (e+f x))^{3/2} \, dx}{a c}\\ &=\frac {2 \cos (e+f x) (a+a \sin (e+f x))^{1+m} \sqrt {c-c \sin (e+f x)}}{a f (5+2 m)}+\frac {4 \int (a+a \sin (e+f x))^{1+m} \sqrt {c-c \sin (e+f x)} \, dx}{a (5+2 m)}\\ &=\frac {8 c \cos (e+f x) (a+a \sin (e+f x))^{1+m}}{a f \left (15+16 m+4 m^2\right ) \sqrt {c-c \sin (e+f x)}}+\frac {2 \cos (e+f x) (a+a \sin (e+f x))^{1+m} \sqrt {c-c \sin (e+f x)}}{a f (5+2 m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.57, size = 111, normalized size = 1.04 \[ -\frac {2 \sqrt {c-c \sin (e+f x)} ((2 m+3) \sin (e+f x)-2 m-7) \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^3 (a (\sin (e+f x)+1))^m}{f (2 m+3) (2 m+5) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 155, normalized size = 1.45 \[ \frac {2 \, {\left ({\left (2 \, m + 3\right )} \cos \left (f x + e\right )^{3} + {\left (2 \, m - 1\right )} \cos \left (f x + e\right )^{2} + {\left ({\left (2 \, m + 3\right )} \cos \left (f x + e\right )^{2} + 4 \, \cos \left (f x + e\right ) + 8\right )} \sin \left (f x + e\right ) + 4 \, \cos \left (f x + e\right ) + 8\right )} \sqrt {-c \sin \left (f x + e\right ) + c} {\left (a \sin \left (f x + e\right ) + a\right )}^{m}}{4 \, f m^{2} + 16 \, f m + {\left (4 \, f m^{2} + 16 \, f m + 15 \, f\right )} \cos \left (f x + e\right ) - {\left (4 \, f m^{2} + 16 \, f m + 15 \, f\right )} \sin \left (f x + e\right ) + 15 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {-c \sin \left (f x + e\right ) + c} {\left (a \sin \left (f x + e\right ) + a\right )}^{m} \cos \left (f x + e\right )^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.71, size = 0, normalized size = 0.00 \[ \int \left (\cos ^{2}\left (f x +e \right )\right ) \left (a +a \sin \left (f x +e \right )\right )^{m} \sqrt {c -c \sin \left (f x +e \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.53, size = 312, normalized size = 2.92 \[ -\frac {2 \, {\left (a^{m} \sqrt {c} {\left (2 \, m + 7\right )} + \frac {a^{m} \sqrt {c} {\left (2 \, m + 15\right )} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac {2 \, a^{m} \sqrt {c} {\left (2 \, m - 5\right )} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac {2 \, a^{m} \sqrt {c} {\left (2 \, m - 5\right )} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {a^{m} \sqrt {c} {\left (2 \, m + 15\right )} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} + \frac {a^{m} \sqrt {c} {\left (2 \, m + 7\right )} \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}\right )} e^{\left (2 \, m \log \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + 1\right ) - m \log \left (\frac {\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1\right )\right )}}{{\left (4 \, m^{2} + 16 \, m + \frac {2 \, {\left (4 \, m^{2} + 16 \, m + 15\right )} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {{\left (4 \, m^{2} + 16 \, m + 15\right )} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} + 15\right )} f \sqrt {\frac {\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.72, size = 104, normalized size = 0.97 \[ -\frac {{\left (a\,\left (\sin \left (e+f\,x\right )+1\right )\right )}^m\,\sqrt {-c\,\left (\sin \left (e+f\,x\right )-1\right )}\,\left (25\,\cos \left (e+f\,x\right )+3\,\cos \left (3\,e+3\,f\,x\right )+8\,\sin \left (2\,e+2\,f\,x\right )+6\,m\,\cos \left (e+f\,x\right )+2\,m\,\cos \left (3\,e+3\,f\,x\right )\right )}{2\,f\,\left (\sin \left (e+f\,x\right )-1\right )\,\left (4\,m^2+16\,m+15\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{m} \sqrt {- c \left (\sin {\left (e + f x \right )} - 1\right )} \cos ^{2}{\left (e + f x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________